Optimal. Leaf size=42 \[ -\frac{1}{2} b \sin (a) \text{CosIntegral}\left (b x^2\right )-\frac{1}{2} b \cos (a) \text{Si}\left (b x^2\right )-\frac{\cos \left (a+b x^2\right )}{2 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0892469, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.417, Rules used = {3380, 3297, 3303, 3299, 3302} \[ -\frac{1}{2} b \sin (a) \text{CosIntegral}\left (b x^2\right )-\frac{1}{2} b \cos (a) \text{Si}\left (b x^2\right )-\frac{\cos \left (a+b x^2\right )}{2 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3380
Rule 3297
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \frac{\cos \left (a+b x^2\right )}{x^3} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{\cos (a+b x)}{x^2} \, dx,x,x^2\right )\\ &=-\frac{\cos \left (a+b x^2\right )}{2 x^2}-\frac{1}{2} b \operatorname{Subst}\left (\int \frac{\sin (a+b x)}{x} \, dx,x,x^2\right )\\ &=-\frac{\cos \left (a+b x^2\right )}{2 x^2}-\frac{1}{2} (b \cos (a)) \operatorname{Subst}\left (\int \frac{\sin (b x)}{x} \, dx,x,x^2\right )-\frac{1}{2} (b \sin (a)) \operatorname{Subst}\left (\int \frac{\cos (b x)}{x} \, dx,x,x^2\right )\\ &=-\frac{\cos \left (a+b x^2\right )}{2 x^2}-\frac{1}{2} b \text{Ci}\left (b x^2\right ) \sin (a)-\frac{1}{2} b \cos (a) \text{Si}\left (b x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0684203, size = 42, normalized size = 1. \[ -\frac{b x^2 \sin (a) \text{CosIntegral}\left (b x^2\right )+b x^2 \cos (a) \text{Si}\left (b x^2\right )+\cos \left (a+b x^2\right )}{2 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.024, size = 39, normalized size = 0.9 \begin{align*} -{\frac{\cos \left ( b{x}^{2}+a \right ) }{2\,{x}^{2}}}-b \left ({\frac{\cos \left ( a \right ){\it Si} \left ( b{x}^{2} \right ) }{2}}+{\frac{{\it Ci} \left ( b{x}^{2} \right ) \sin \left ( a \right ) }{2}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.54482, size = 65, normalized size = 1.55 \begin{align*} -\frac{1}{4} \,{\left ({\left (i \, \Gamma \left (-1, i \, b x^{2}\right ) - i \, \Gamma \left (-1, -i \, b x^{2}\right )\right )} \cos \left (a\right ) +{\left (\Gamma \left (-1, i \, b x^{2}\right ) + \Gamma \left (-1, -i \, b x^{2}\right )\right )} \sin \left (a\right )\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.59318, size = 178, normalized size = 4.24 \begin{align*} -\frac{2 \, b x^{2} \cos \left (a\right ) \operatorname{Si}\left (b x^{2}\right ) +{\left (b x^{2} \operatorname{Ci}\left (b x^{2}\right ) + b x^{2} \operatorname{Ci}\left (-b x^{2}\right )\right )} \sin \left (a\right ) + 2 \, \cos \left (b x^{2} + a\right )}{4 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos{\left (a + b x^{2} \right )}}{x^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.10915, size = 117, normalized size = 2.79 \begin{align*} -\frac{{\left (b x^{2} + a\right )} b^{2} \operatorname{Ci}\left (b x^{2}\right ) \sin \left (a\right ) - a b^{2} \operatorname{Ci}\left (b x^{2}\right ) \sin \left (a\right ) +{\left (b x^{2} + a\right )} b^{2} \cos \left (a\right ) \operatorname{Si}\left (b x^{2}\right ) - a b^{2} \cos \left (a\right ) \operatorname{Si}\left (b x^{2}\right ) + b^{2} \cos \left (b x^{2} + a\right )}{2 \, b^{2} x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]